package question4;

public class Test {
    public static void main(String[] args) {
        Company company = new Company();
        Worker worker = new Programmer("李小亮",5000);
        Worker manager = new Manager("张小强",9000);
        ((Programmer) worker).getMoney(company);
        ((Manager) manager).getMoney(company);
    }
}
